package marina;

import java.util.Scanner;

public class J12Circle {
//Circle 클래스 만들기
	public static void main(String[] args) {
		Circle test1 = new Circle();
		test1.rad = test1.makeScanner().nextDouble();
		
		System.out.println(test1.getArea());
		System.out.println(test1.getPerimeter());
	}

}

class Circle {
	final double PI = 3.14; 
	double rad;
	
	public double getArea(){
		return rad * rad *PI;
	}
	
	public double getPerimeter(){
		return rad * 2 * PI;
	}
	
	// scanner 생성
		public static Scanner makeScanner(){ 
			Scanner sc = new Scanner(System.in);
			return sc;
		}
		// scanner 소멸
		public static void closeScanner(Scanner sc){
			sc.close();
		}
}